package com.ruoyi.ring.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * AI聊天对象 az_ring_device_aichat
 * 
 * @author liuwp
 * @date 2025-10-11
 */
@Data
public class RingDeviceAichat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String deviceSn;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 设备音频 */
    @Excel(name = "设备音频")
    private String deviceVoice;

    /** 内容 */
    @Excel(name = "内容")
    private String deviceContent;

    /** 设备音频时长 */
    @Excel(name = "设备音频时长")
    private String deviceDuration;

    /** 对话类型  1：设备toApp，2：aiTo设备 */
    @Excel(name = "对话类型  1：设备toApp，2：aiTo设备")
    private Integer chatType;

    /** ai音频 */
    @Excel(name = "ai音频")
    private String aichatVoice;

    /** ai内容 */
    @Excel(name = "ai内容")
    private String aichatContent;

    /** ai时长 */
    @Excel(name = "ai时长")
    private String aichatDuration;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private Integer isReal;

    /** 是否接收 */
    @Excel(name = "是否接收")
    private Integer isReceive;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceSn", getDeviceSn())
                .append("deviceId", getDeviceId())
                .append("userId", getUserId())
                .append("deviceContent", getDeviceContent())
                .append("chatType", getChatType())
                .append("aichatContent", getAichatContent())
                .append("isReal", getIsReal())
                .append("isReceive", getIsReceive())
                .append("createTime", getCreateTime())
                .toString();
    }
}
